package com.liu.auth.feginClient;

import com.liu.auth.vo.UserVO;
import com.liu.common.commons.ModelServiceNameConfig;
import com.liu.common.commons.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 调用feign 接口获取用户数据
 * Created by lxh.
 */
@FeignClient(value = ModelServiceNameConfig.WEB_MANAGEMENT)
public interface UserClient {
    //根据账号查询用户信息
    @GetMapping("webManagement/login/getUserByUserName")
    public R<UserVO> getUserByUserName(@RequestParam("userName") String userName);
}
